package com.wudl.utils

import redis.clients.jedis.Jedis



/**
 * redis 样例工具类
 */
object RedisUtil {

  val host: String = ConfigUtil.getProperty("redis.host")
  val port: Int = ConfigUtil.getProperty("redis.port").toInt



  def getClient: Jedis = {
    val client: Jedis = new Jedis(host, port, 60 * 1000)
    client.connect()
    client
  }

}
